/* 聊天列表样式 */
.chat-container {
  background-color: #f5f5f5;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 50px; /* 为底部标签栏留出空间 */
}
.chat-header {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
}
.current-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20%;
  margin-right: 10px;
}
.header-title {
  font-size: 35px;
  font-weight: bold;
  /* background-color: aqua; */
}
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 10px;
  margin: 10px 0;
}
.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border-radius: 10px; */
  /* margin-bottom: 10px; */
  /* margin: 10px 0; */
  border-bottom: 1px solid #e0e0e0;
  padding: 5px 0;
  cursor: pointer;
  transition: background-color 0.3s;
  /* background-color: aqua; */
}

.user-item:hover {
  background-color: #f8f9fa;
}

.user-item.pinned {
  background-color: #f0f8ff;
  border-left: 3px solid #007aff;
}

.user-item.pinned:hover {
  background-color: #e6f3ff;
}
.user-info {
  display: flex;
  flex-direction: column;
  /* flex: 1; */
  /* margin-left: 15px; */
}

.user-avatar {
  display: flex;
  align-items: center;
}

/* 最后一条消息样式 */
.last-message {
  font-size: 12px;
  color: #666;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
  margin-left: -10px;
  margin-top: 5px;
}

.last-message:hover {
  color: #333;
}

.message-time {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}
.users-list {
  /* background-color: #999; */
  padding: 0px 5px;
  /* height: 100px; */
}
.user-avatar-img {
  margin-left: 100px;
}

/* 背景图选择器弹窗样式 */
.background-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.background-picker-container {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.background-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.background-picker-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.background-picker-content {
  margin-bottom: 24px;
}

.background-upload {
  text-align: center;
}

.upload-btn {
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: #e8e8e8 !important;
  border-color: #999 !important;
}

.background-preview {
  text-align: center;
}

.background-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn:hover {
  background: #e0e0e0 !important;
}

.confirm-btn:hover {
  opacity: 0.9;
}

/* 用户操作按钮样式 */
.user-actions {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.background-set-btn {
  transition: all 0.3s ease;
}

.background-set-btn:hover {
  background: #5a6fd8 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
